package com.pmcc.platform.shop.entity;



import com.fasterxml.jackson.annotation.JsonIgnore;
import com.pmcc.core.entity.BaseEntity;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @author chenqf
 * @ClassName ShopInfo
 * @Description 店铺信息实体类
 * @date 2018/8/20 15:33
 * @Version 1.0
 */
@Getter
@Setter
@Entity
@Table(name = "ds_shop_info")
public class ShopInfo extends BaseEntity {

    @Column(columnDefinition = "varchar(100) COMMENT '店铺名称'")
    private String name;//店铺名称

    @Column(columnDefinition = "varchar(100) COMMENT '店铺CODE'")
    private String code;//店铺CODE

    @Column(columnDefinition = "varchar(100) COMMENT '门头照片'")
    private String imagePath;//门头照片


 /*   @Column(columnDefinition = "varchar(100) COMMENT '经营范围'")
    private String businessScope;//经营范围*/

    @Column(columnDefinition = "varchar(100) COMMENT '入驻省'")
    private String provinces;//入驻省

    @Column(columnDefinition = "varchar(100) COMMENT '入驻城市'")
    private String city;//入驻城市

    @Column(columnDefinition = "varchar(100) COMMENT '入驻区'")
    private String area;//入驻区

    @Column(columnDefinition = "varchar(100) COMMENT '入驻区编码'")
    private String areaCode;//入驻区编码

    @Column(columnDefinition = "varchar(100) COMMENT '经度'")
    private Double longitude;//经度

    @Column(columnDefinition = "varchar(100) COMMENT '纬度'")
    private Double latitude;//纬度

    @Column(columnDefinition = "varchar(100) COMMENT '店铺地址'")
    private String address;//店铺地址

    @Column(columnDefinition = "varchar(100) COMMENT '店铺详细地址'")
    private String detailedAddress;//店铺详细地址

    @Column(columnDefinition = "varchar(100) COMMENT '老板名称'")
    private String bossName;//老板名称

    @Column(columnDefinition = "varchar(100) COMMENT '联系电话'")
    private String phone;//联系电话

    @Column(columnDefinition = "varchar(100) COMMENT '营业状态'")
    private String operatingStatus;//营业状态 0 休息 1 营业

    @Column(columnDefinition = "varchar(100) COMMENT '店铺状态'")
    private String shopStatus;//店铺状态（0;封停，1;正常）

    @Column(columnDefinition = "varchar(100) COMMENT '业务员id'")
    private String salesmanId;//业务员id

    @Transient
    private int getNum;  //发送赠品数量

    @Transient
    private int residueNum;  //剩余赠品数量

    @Transient
    private String salesmanName;  // 业务员名字

    @Transient
    private String salesmanPhone;  // 业务员s手机

    @Transient
    private  String   state;    //0为正常   1为审核中

    @Transient
    private  int giftNum;  //赠品数量

    @Transient
    private  int shoppingNum; //导购数量






}
